﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace AspNetMvc.Controllers
{
   public partial class BaseController : Controller
    {
       public string UserName
       {
          get
          {
             return User.Identity != null ? User.Identity.Name : null;
          }
       }

       public string Language
       {
          get
          {
             return (string)Session["Language"];
          }
       }
    }
}
